package com.xiemulei.gulimall.order.feign;

import com.xiemulei.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberFeignClient {
    @RequestMapping("/member/address/{memberId}/list")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);
}
